package io.github.fb513.common.enums;

public enum CommandEnum {

    /** 登录 */
    LOGIN(1000),
    LOGIN_SUCCESS(1001),
    LOGIN_FAILED(1002),
    OFFLINE(1003),

    /** 消息 */
    MESSAGE(2000),
    SERVER_MESSAGE_ACK(2001),
    CLIENT_MESSAGE_ACK(2002),
    CLIENT_MESSAGE_READ(2003),

    /** 心跳 */
    HEARTBEAT(3000),

    /** 用户信息 */
    FRIENDSHIP(4000),
    FRIENDSHIP_ACK(4001),

    ;

    CommandEnum(int command) {
        this.command = command;
    }

    private final int command;

    public int getCommand() {
        return command;
    }
}
